<extend name="Layout/ins_popup" />
<block name="content">
	<script src="__INS__/js/ycom.js"></script>
	<form id="form_sync" method="post" action="">
		<input type="hidden" name="ajax" id="ajax" value="1">
		{:W('PageHeader/popup',array('name'=>'同步企业号','search'=>'N'))}
		<p id="info"></p>
	</form>
	<script>
save = function() {
	Ycom.loading.show();
	$.ajax({
		url: '{:U("User/sync")}',
		type: 'POST',
		dataType: 'text',
		data: {param1: 'value1'},
	})
	.done(function(r) {
		Ycom.loading.hide();
		$('#info').text(r);
	})
	.fail(function() {
		console.log("error");
	})
	.always(function() {
		console.log("complete");
	});

	return false;
}
	</script>
</block>
<block name="js">
	<script src="__INS__/js/ycom.js"></script>
</block>
